<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素类型转换-分页布局</title>
    <style>
    ul{
        padding: 0px;
        /* 设置字体为0是为了消除空白间隙 */
        font-size: 0;
        /* 设置文字对齐方向 */
        text-align: center;
    }
    li{
        list-style: none;
        width: 25px;
        height: 25px;
        border:1px solid pink;
        /* 把li转化成行内块 */
        display: inline-block;
        /* 设置字体大小 */
        font-size: 16px;
    }
    </style>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ul>
</body>
</html>